﻿<?xml version="1.0" encoding="UTF-8" ?>

<!-- This is a Xsl To .NET Code Generator Template; the Xsl To .NET Code Generator Visual Studio 2010
     Add-in is required for the automatic code generation.
     http://www.codeplex.com/CodeGenerator 
-->

<!-- Converts the xsd schema file to C# code. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                              xmlns:user="urn:my-scripts"
                              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                              xmlns:xs="http://www.w3.org/2001/XMLSchema"
                              xmlns:codegen="http://www.codeplex.com/codegenerator">
  <xsl:output method = "text" omit-xml-declaration = "no" indent = "no" encoding="Windows-1252"/>

  <!-- A set of C# functions that extend the Xsl language while generating the code. -->
  <msxsl:script language="C#" implements-prefix="user">
    <![CDATA[
  public DateTime LastUpdatedOn()
  {      
      return DateTime.Now;
  }
  ]]>
  </msxsl:script>
  
  <!-- Represents a single empty space. -->
  <xsl:variable name="space" xml:space="preserve" > </xsl:variable>

  <!-- Start the code generation here. -->
  <xsl:template match ="*">
    // This code is automatically generated, if you modify this file manually, your changes will be lost!
    // Last Updated On: <xsl:value-of select ="user:LastUpdatedOn()" />
    
    #pragma warning disable 1591
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml.Linq;      

    namespace <xsl:value-of select="codegen:GetDefaultNamespace()"/>
    {
    public partial struct <xsl:value-of select="/CodeGenerator/StructName"></xsl:value-of>
    {
    public <xsl:value-of select="/CodeGenerator/VarType"></xsl:value-of> v;
    public string <xsl:value-of select="/CodeGenerator/VarName"></xsl:value-of>;
    }
    }
  </xsl:template>

</xsl:stylesheet>